function Cookie() {}
/***
	@key {string}		预制存储名称d
	@str {any}   		内容
	@def {any}  		返回空时的默认值 
	@description Cookie.set(name,value)
*/
Cookie.prototype = {
	constructor: {},
	set(key, value) {
		//需要对单独的内容处理时 
		const meth = {
			default: () => {
				return 1
			}
		} [key]
		const content = meth ? meth() : value
		return uni.setStorageSync(key, content);
	},
	get(key, def = '') {
		return uni.getStorageSync(key) || def;
	},
	remove(key) {
		uni.removeStorageSync(key)
	},
}
export default new Cookie();
